<!--教师-年排列表-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>学生成绩管理系统</title>
    <link rel="icon" type="image/png" href="/assets/img/学籍管理.svg">
    <link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">
    <link href="/assets/css/dashboard.css"  rel="stylesheet">
    <style type="text/css">
        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }
        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }
        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<!--引入topbar-->
<div th:replace="bar/teabar::topbar"></div>
<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="bar/teabar::#sidebar(activeUri='rank')"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h2>
                <a style="float: right;background-color: #80bdff;border-color: #b8daff;margin-top: 30px" class="btn btn-outline-secondary" href="" th:href="@{/tea/torank}">返回初始年排查询页面</a>
            </h2>
            <form method="get" th:action="@{/tea/selectRank}" >
                <div class="input-group mb-3" style="width: 500px;margin-left: 250px;margin-top: 30px">
                    <input type="text" class="form-control"  name="resTerm" placeholder="按学期查询排行年排，请输入学期（样例：2021-2022-1）" aria-label="请输入学期例：（2021-2022-1）" aria-describedby="button-addon2">
                    <div class="input-group-append" >
                        <button  class="btn btn-outline-secondary" type="submit" id="button-addon2">查询</button>
                    </div>
                </div>
            </form>
            <div class="table-responsive" style="border-top: 2px solid #e5e5e5!important;margin-top: 30px;text-align: center;">
                <table class="table table-striped table-sm" style="width: 1200px">
                    <thead>
                    <tr style="color: #007bff;">
                        <th style="width: 45px">排名</th>
                        <th style="width: 80px">姓名</th>
                        <th style="width: 150px">学号</th>
                        <th style="width: 80px">总成绩</th>
                        <th style="width: 80px">各科成绩</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="rank:${ranks}" th:if="rank!=null" >
                        <td th:text="${rank.rownum}"></td>
                        <td th:text="${rank.stuName}"></td>
                        <td th:text="${rank.stuId}"></td>
                        <td th:text="${rank.stuAllres}"></td>
                        <td th:each="blogId,blogIdStat: ${rank.resmap}">
                            <span th:text="${blogIdStat.current.key}"></span>
                            <span>:</span>
                            <span th:text="${blogIdStat.current.value}"></span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>
    </div>
</div>

<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js" th:src="@{/webjars/bootstrap/4.0.0/js/bootstrap.js}"></script>
<script type="text/javascript" src="asserts/js/feather.min.js" th:src="@{/asserts/js/feather.min.js}"></script>
<script>
    feather.replace()
</script>
</body>
</html>